#include <vector>
using namespace std;

class Solution {
public:
    int findSpecialInteger(vector<int>& arr) {
        int n = arr.size();
        int c = arr[0], cnt = 0;
        // 遍历数组
        for (size_t i = 0; i < n; i++)
        {
            if (arr[i] == c)
            {
                cnt++;
                if (cnt * 4 > n)
                {
                    return c;
                }
            }else{
                c = arr[i];
                cnt = 1;
            }
            
        }
        return -1;
        
    }
};


int main(){

    return 0;
}